/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gisgraph.components;

import java.util.ArrayList;
/**
 *
 * @author korek
 */
public class Group {
    private String name = "";
    private int order;
    private ArrayList<StateVertex> statesInGroup = new ArrayList();
    
    public Group(String name)
    {
        this.name = name;
    }
    
    public Group(String name, int order)
    {
        this.name = name;
        this.order = order;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }
    
    public void addState(StateVertex s)
    {
        this.statesInGroup.add(s);
    }
    
    public StateVertex getState(int i)
    {
        return this.statesInGroup.get(i);
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<StateVertex> getStatesInGroup() {
        return statesInGroup;
    }

    public void setStatesInGroup(ArrayList<StateVertex> statesInGroup) {
        this.statesInGroup = statesInGroup;
    }
    
}
